﻿#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

using Weazel.Gezel.Conversions.Model;
using SoftwareType = Weazel.Gezel.Conversions.Model.Type;

#endregion

namespace Weazel.Gezel.Conversions.CodeGeneration
{
  public struct SourceFile
  {
		private bool isHeader;
		public bool IsHeader
		{
			get { return isHeader; }
		}


    private string code;
    public string Code
    {
      get { return code; }
			set { code = value; }
    }

    private readonly SoftwareType type;
    public SoftwareType Type
    {
      get { return type; }
    }

    public SourceFile(SoftwareType type, string code)
    {
      this.type = type;
      this.code = code;
			this.isHeader = false;
    }

		public SourceFile(SoftwareType type, string code, bool isHeader) : this(type, code)
		{
			this.isHeader = isHeader;
		}
  }
}
